.order-details-container {
  padding: 16px;
  background-color: #f5f5f5;
  min-height: 100vh;
  box-sizing: border-box;
}

/* 订单基本信息卡片 */
.order-basic-info {
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 16px;
}

.order-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;

  &:last-child {
    border-bottom: none;
  }
}

.order-info-label {
  font-size: 14px;
  color: #666;
  flex-shrink: 0;
  width: 80px;
}

.order-info-value {
  font-size: 14px;
  color: #333;
  flex: 1;
  text-align: right;
  word-break: break-all;
}

/* 订单产品列表 */
.order-items-card {
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.order-items-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.order-items-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
}

.order-items-list {
  padding: 0;
}

.order-product-item {
  display: flex;
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s;

  &:hover {
    background-color: #f8f8f8;
  }

  &:last-child {
    border-bottom: none;
  }
}

.product-image {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  margin-right: 12px;
  flex-shrink: 0;
  object-fit: cover;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
}

.product-description {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-specs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.spec-item {
  font-size: 12px;
  color: #999;
  background-color: #f5f5f5;
  padding: 4px 8px;
  border-radius: 4px;
}

.product-style {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.style-item {
  font-size: 12px;
  color: #666;
}

.product-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.amount-label {
  font-size: 13px;
  color: #666;
}

.amount-value {
  font-size: 16px;
  font-weight: 600;
  color: #10b981;
}

.product-arrow {
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.arrow-icon {
  font-size: 24px;
  color: #ccc;
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: #f8f8f8;
  border-top: 1px solid #f0f0f0;
}

.total-label {
  font-size: 15px;
  color: #666;
  font-weight: 500;
}

.total-amount {
  font-size: 20px;
  font-weight: bold;
  color: #10b981;
}

/* 订单状态卡片 */
.order-status-card {
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.order-status-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.order-status-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
}

.order-status-steps {
  padding: 20px;
}

/* 底部签约按钮 */
.contract-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background-color: white;
  border-top: 1px solid #f0f0f0;
  z-index: 100;
}

.contract-button {
  width: 100%;
  height: 48px;
  border-radius: 24px;
  background-color: #10b981;
  color: white;
  font-size: 16px;
  font-weight: bold;
  border: none;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* 合同签署弹框样式 */
.contract-modal {
  .nut-modal__content {
    max-height: 80vh;
    overflow-y: auto;
  }
}

.contract-content {
  padding: 20px;
}

.contract-description {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
}

.contract-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contract-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.contract-parties {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contract-party {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-detail {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.contract-terms {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terms-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.term-text {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  text-align: justify;
}

.contract-actions {
  padding: 20px;
  border-top: 1px solid #f0f0f0;
}

.sign-button {
  width: 100%;
  height: 48px;
  border-radius: 24px;
  background-color: #10b981;
  color: white;
  font-size: 16px;
  font-weight: bold;
  border: none;
}
